<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/7/2
 * Time: 17:05
 */

namespace common\models\Service;


use common\models\DAO\Loan;

class LoanService {

    /*
     * 用户借款次数
     */
    public static function userLoanTime($userID){
        return Loan::find()->where(['userID'=>$userID])->count();
    }
}